﻿///Line2D.as 该类为绘制一条直线
//vesion 1.0
//author 夏天的树人
package org.summerTree.graphics
{

	import flash.text.*;
	import flash.display.Sprite;
	public class Line2D extends Base
	{


		public function Line2D()
		{

		}
		override public  function clone():*
		{
			return new Line2D  ;
		}
		/* @ para   x1  开始点x坐标
		 * @ para   y1  开始点y坐标
		 * @ para   x2  结束点x坐标
		 * @ para   y2  结束点y坐标
		 */
		public function CreatLine2D(x1:Number,y1:Number,x2:Number,y:Number):void
		{
			this.graphics.lineStyle(linekness,color);
			this.graphics.moveTo(x1,y1);
			this.graphics.lineTo(x2,y2);
		}
	}
}